package br.ufal.tci.nexos.arcolive.beans;

import javax.media.MediaLocator;
import javax.media.Time;
import javax.media.protocol.ContentDescriptor;
import javax.media.protocol.PullBufferDataSource;
import javax.media.protocol.PullBufferStream;


public class ImageDataSource extends PullBufferDataSource {

	private LiveStream streams[];

	public ImageDataSource(int width, int height, int frameRate) {
		streams = new LiveStream[1];
		streams[0] = new LiveStream(width, height, frameRate);
	}

	public void setLocator(MediaLocator source) {
	}

	public MediaLocator getLocator() {
		return null;
	}

	public String getContentType() {
		return ContentDescriptor.RAW;
	}

	public void connect() {
	}

	public void disconnect() {
	}

	public void start() {
	}

	public void stop() {
	}

	public PullBufferStream[] getStreams() {
		return streams;
	}

	public Time getDuration() {
		return DURATION_UNKNOWN;
	}

	public Object[] getControls() {
		return new Object[0];
	}

	public Object getControl(String type) {
		return null;
	}
}